import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
// 访问链接
// http://localhost:8080/tagColumn/index.html#/caibaojuejin/66/CN,4G3Btpq5vZcSV4X,tA8xrb2KLLO4g3wMuJNkd4tk8jD6GxizfWHC5lk32VEHCYcZr6IjvNExBkhopDhFSWx0sZsRK3xp,7O.z.vBD5BktwRMDAuUjWk9dgIyR.5gQUodnKcBjJz7bD.cKUqyJ3Ea4EO,kpmQQtyCxutjc3w8DD4YvUbDs0uAURgQz6rAZzqLgdIOjzPs_


const routes = [
    {
        path: '/caibaojuejin/:productId/:token',
        name: 'caibaojuejin',
        component: ()=> import("../views/caibaojuejin.vue"),
        meta: {
            title: '财报掘金'
        }
    },
    {
        path: '/jiazhicelue/:productId/:token',
        name: 'fengkouOff',
        component: ()=> import("../views/jiazhicelue.vue"),
        meta: {
            title: '价值策略'
        }
    }, 
    {
        path: '/qinlongcelue/:productId/:token',
        name: 'qinlongcelue',
        component: ()=> import("../views/qinlongcelue.vue"),
        meta: {
            title: '擒龙策略'//暂时废弃
        }
    }, 
    {
        path: '/qinlongxingtai/:productId/:token',
        name: 'qinlongxingtai',
        component: ()=> import("../views/qinlongxingtai.vue"),
        meta: {
            title: '擒龙形态'
        }
    }, 
    
];
const router = new VueRouter({
    linkActiveClass: 'active',
    base: process.env.BASE_URL,
    routes
});
//路由后置钩子
router.afterEach((to, from) => {

    //设置头部标题
    if (to.meta.title) document.title = to.meta.title;
});

export default router




